home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #2 / Amiga Plus CD - 1995 - No. 2.iso / internet / faq / englisch / sgi-movie < prev    next >
Encoding:
Text File  |  1995-04-11  |  46.3 KB  |  1,178 lines

  1. Archive-name: sgi/faq/movie
  2. Last-modified: Wed Feb 22  7:50:12 CST 1995
  3.  
  4.     SGI movie Frequently Asked Questions (FAQ)
  5.  
  6. This is one of the Silicon Graphics FAQ series, which consists of:
  7.  
  8.     SGI admin FAQ - IRIX system administration
  9.     SGI apps FAQ - Applications and miscellaneous programming
  10.     SGI audio FAQ - Audio applications and programming
  11.     SGI graphics FAQ - Graphics and user environment customization
  12.     SGI hardware FAQ - Hardware
  13.     SGI impressario FAQ - IRIS Impressario
  14.     SGI inventor FAQ - IRIS Inventor
  15.     SGI misc FAQ - Introduction & miscellaneous information
  16.     SGI movie FAQ - Movies
  17.     SGI performer FAQ - IRIS Performer
  18.     SGI pointer FAQ - Pointer to the other FAQs
  19.  
  20. Read the misc FAQ for information about the FAQs themselves.  Each FAQ
  21. is posted to comp.sys.sgi.misc and to the news.answers and comp.answers
  22. newsgroups (whose purpose is to store FAQs) twice per month.  If you
  23. can't find one of the FAQs with your news program, you can get it by
  24. anonymous FTP from one of these sites:
  25.  
  26.     viz.tamu.edu:/pub/sgi/faq/
  27.     rtfm.mit.edu:/pub/usenet/news.answers/sgi/faq/
  28.     ftp.uu.net:/usenet/news.answers/sgi/faq/
  29.  
  30. Note that rtfm.mit.edu is home to many other FAQs and informational
  31. documents, and is a good place to look if you can't find an answer here.
  32. If you can't use FTP, send mail to mail-server@rtfm.mit.edu with the
  33. word 'help' on a line by itself in the text, and it will send you a
  34. document describing how to get files from rtfm.mit.edu by mail. Send the
  35. command 'send usenet/news.answers/sgi/faq/misc' to get the SGI misc FAQ,
  36. and similarly for the other FAQs. Finally, the FAQs are on the World
  37. Wide Web at
  38.  
  39.     http://www.cis.ohio-state.edu/hypertext/faq/usenet/sgi/top.html
  40.  
  41. The SGI FAQs are freely distributable and we encourage wide circulation.
  42. You MUST keep the FAQs intact, including headers and this notice.  The
  43. contents are accurate as far as we know, but the usual disclaimers
  44. apply. (In particular, copies of the SGI FAQs published on paper or
  45. CD-ROM are certain to be out of date!) Please send additions and changes
  46. to sgi-faq@viz.tamu.edu.
  47.  
  48. Topics covered in this FAQ:
  49. ---------------------------
  50.    -1- Is there a QuickTime movieplayer available for SGI?
  51.    -2- I cannot play a QuickTime movie on my Silicon Graphics computer.
  52.        How can I make it work?
  53.    -3- I cannot play a QuickTime movie created on a Silicon Graphics
  54.        computer on my Macintosh.  How can I make it work?
  55.    -4- What version of QuickTime does Silicon Graphics support?
  56.    -5- How can I create a QuickTime file on an SGI?
  57.    -6- I need to play MPEG movies.  Does SGI offer MPEG support?
  58.    -7- I created a movie with Capture, but now I can't edit it with
  59.        Movie Maker or play it with Movie Player.
  60.    -8- How can I write a program to create, edit, convert, or play
  61.        movies?  Where can I get a copy of the SGI Movie Library?
  62.    -9- I can't use images exported with Moviemaker in any of my
  63.        applications.  What image format does Moviemaker use?
  64.   -10- Can anyone provide details on the SGI movie format?
  65.   -11- Can anyone provide details on the QuickTime movie format?
  66.   -12- How can I convert from SGI movie format to MPEG?
  67.   -13- What is the WebFORCE software product?  What does it do? How can
  68.        I order it?
  69.   -14- How can I convert from Microsoft AVI movie format to SGI movie
  70.        format?
  71.   -15- Is there a way to bring up a movie (using movieplayer) within
  72.        Showcase using a button click...and having it place itself
  73.        automatically in a certain location and start?
  74.   -16- I am using Mosaic.  When I try to view a movie, movieplayer
  75.        starts, but then shows a message: no movie.  How can I make it
  76.        work?
  77.   -17- I have the Galileo (or Indy Video) option, but I can't get
  78.        Capture to use it.  When I run it, the IndyCam shows up.  What do
  79.        I do?
  80.   -18- I cannot get the right video to show in the Capture tool! I get a
  81.        video source other than the one I want or the screen is black.
  82.        What do I do?
  83.   -19- Why does Capture tell me to "Please Stand By", instead of
  84.        capturing video?
  85.   -20- Capture just grabbed a file for me, but now I can't find it.
  86.        Where did Capture hide it?
  87.   -21- Under IRIX 5.3, my system has a video board and/or IndyCam, but
  88.        Capture won't let me use it.  It just greys out the video options
  89.        on its menu.  How can I make it work?
  90.   -22- I created a movie with audio using makemovie, but the soundtrack
  91.        plays back really garbled and choppy.  What do I do?
  92.   -23- Does anyone know the maximum size a movie file that MovieMaker or
  93.        MoviePlayer can handle?  Is it limited by free memory, or will it
  94.        play from the hard drive?
  95.   -24- How do I write a program to access the pixels of a video frame in
  96.        a movie file for image processing purposes?
  97.   -25- How do I write a program which can write individual frames from a
  98.        movie file out to a still image file?
  99.   -26- I'm using the Movie Library to create QuickTime movies using
  100.        Apple's Video compression.  When are default key-frames placed in
  101.        a QuickTime movie made with the SGI movie library?
  102.   -27- The Movie Library has calls to play a movie in a file, memory or
  103.        a file descriptor.  But all of them seem to assume that the
  104.        complete movie is available locally.  How can I play a movie all
  105.        of which is not available locally?
  106.   -28- When programming with the Movie Library, can we insert and delete
  107.        frames from a playing movie?
  108.   -29- When writing frames to a movie with the Movie Library, if we fix
  109.        the image track parameters, does the byte size of the frame
  110.        remain constant across frames?
  111.   -30- How do I write a program to play a movie entirely from memory?
  112.   -31- How do I capture movies from live video within my application?
  113.   -32- How do I write a program to read and write compressed data to a
  114.        movie file?
  115.   -33- I want to write a program which creates a JPEG-compressed movie
  116.        file, but I need to control the compression quality.  How do I do
  117.        this with the Movie Library?
  118.   -34- I want to write a program which can create a JPEG-compressed
  119.        movie file compatible with the Cosmo Compress board, SGI's
  120.        hardware JPEG accelerator.  How do I do this?
  121.   -35- I simply want to create a JPEG-compressed movie which is
  122.        compatible with the Cosmo Compress board.  I don't want to write
  123.        my own program.  How do I do this?
  124.  
  125. ----------------------------------------------------------------------
  126.  
  127. Subject:    -1- Is there a QuickTime movieplayer available for SGI?
  128. Date: Thu Feb 16 15:06:32 PST 1995
  129.  
  130.   SGI provides QuickTime movie support as part of Movieplayer in IRIX
  131.   5.1 and later.  If you can't or don't wish to upgrade, you may wish
  132.   to investigate a public domain program called Xanim which offers
  133.   Quicktime capability.
  134.  
  135.   Version 2.68.3 of XAnim is available from the following location:
  136.  
  137.   ftp://export.lcs.mit.edu/contrib/applications/xanim2683.README
  138.   ftp://export.lcs.mit.edu/contrib/applications/xanim2683.tar.Z
  139.  
  140.   Version 2.68.3 does not support audio, but apparently this feature
  141.   is in the works.
  142.  
  143.   If you are running IRIX 4.0.5 (any variant) or earlier, please
  144.   consider upgrading to IRIX 5.3.  It contains a more full-featured
  145.   set of movie tools bundled with the system.
  146.  
  147.   Even better would be to upgrade to IRIX 5.3 and purchase SGI's new
  148.   WebFORCE software product.  WebFORCE provides additional
  149.   enhancements to the digital media tools, such as MPEG-1 and
  150.   QuickTime Cinepak support.  See elsewhere in this FAQ for
  151.   information on ordering WebFORCE.
  152.  
  153. ------------------------------
  154.  
  155. Subject:    -2- I cannot play a QuickTime movie on my Silicon Graphics
  156.                 computer. How can I make it work?
  157. Date: Thu Feb 16 15:37:32 PST 1995
  158.  
  159.   Here is a checklist of things to try:
  160.  
  161.   - You should be using the 5.1 MR version of the OS or later.
  162.  
  163.   - The QT movie must be "flattened".  Use the Apple Movie Converter
  164.     program and choose BOTH "Make playable on non-Apple systems" and
  165.     "Make self-contained" in the Save As dialog.  The file must
  166.     also be compressed with an algorithm we support.  For example,
  167.     do not choose "Cinepak" or "Compact Video".
  168.  
  169.   - Try changing the compression to something else, say "none" to see
  170.     if that may be the problem.
  171.  
  172.   SGI has licensed the QuickTime movie file format and three compressors
  173.   from Apple.  In IRIX releases 5.1 through 5.3, you can display
  174.   QuickTime movies compressed with the RLE or RPZA algorithms
  175.   (Apple Graphics and Apple Video) with the bundled SGI movieplayer.
  176.  
  177.   If you have IRIX 5.3, you can purchase the optional WebFORCE software
  178.   product.  This will allow you to create and view QuickTime movies
  179.   using Cinepak compression, and it can also read QuickTime movies on
  180.   Macintosh filesystems which have not been "flattened".  See elsewhere
  181.   in this FAQ for information on ordering WebFORCE.
  182.  
  183.   Finally, the SGI movie tools currently do not support QuickTime
  184.   movies which contain an edit list.
  185.  
  186.   Typically, a QuickTime file on the Macintosh stores all of the movie
  187.   parameters and header information in the resource fork, and the
  188.   actual media (sound + video) in the data fork.  To be used on a
  189.   computer which has a conventional file system (such as the Indigo),
  190.   you must first "flatten" the movie on the Macintosh before
  191.   transferring it to the Indigo.  This is what the "Make playable on
  192.   non-Apple systems" option in the Apple Movie Converter does.
  193.  
  194.   The Apple Movie Converter is part of the QuickTime Starter Kit, a
  195.   software package sold by Apple Computer for Macintosh systems.  It is
  196.   available from retail software distributors.
  197.  
  198. ------------------------------
  199.  
  200. Subject:    -3- I cannot play a QuickTime movie created on a Silicon
  201.                 Graphics computer on my Macintosh.  How can I make it
  202.                 work?
  203. Date: Thu Feb 16 15:37:32 PST 1995
  204.  
  205.   When going from an SGI to a Mac, the file must have a creator and
  206.   file type.  This can be done in "ResEdit".
  207.  
  208.   To move a file to the Mac...
  209.  
  210.   1. Save the file in a Quicktime format.  See elsewhere in this FAQ
  211.      for more details on how to create QuickTime files.
  212.  
  213.   2. Move the file to a Mac (using the floptical, or ftp).
  214.  
  215.      NOTE:  If using ftp, make sure the mode is binary, *not* macbinary
  216.  
  217.   3. Open the Mac program "ResEdit".
  218.  
  219.   4. Select "Get File info..." from File menu.
  220.  
  221.   5. Type "MooV" into file type field, and "TVOD" into creator field.
  222.  
  223.   6. Close dialog (Choose Yes to save changes).
  224.  
  225.   7. Quit "ResEdit".
  226.  
  227.   It should just work from here.
  228.  
  229. ------------------------------
  230.  
  231. Subject:    -4- What version of QuickTime does Silicon Graphics support?
  232. Date: Thu Feb 16 15:37:32 PST 1995
  233.  
  234.   Silicon Graphics does not provide support for the QuickTime
  235.   programming library, but only for the QuickTime file format.
  236.  
  237.   The definition of the QuickTime file format has not changed since its
  238.   original release.  Apple's enhancements have mostly been in the form
  239.   of performance improvements and new features to QuickTime which have
  240.   not changed the basic file format.  So, in some sense SGI supports
  241.   every version of QuickTime.  But to answer the question practically,
  242.   we do not support every features which Apple has introduced in later
  243.   releases of QuickTime, such as MIDI tracks in QuickTime files, the
  244.   software syhthesizer, or QuickTime VR.
  245.  
  246.   SGI is working very hard to enhance its QuickTime support over time.
  247.   In the WebFORCE software product for IRIX 5.3, SGI provides support
  248.   for reading and writing QuickTime movies with Cinepak compression,
  249.   as well as support for reading "non-flattened" movies which contain
  250.   separate resource and data forks.  See elsewhere in this FAQ for
  251.   information on ordering WebFORCE.
  252.  
  253. ------------------------------
  254.  
  255. Subject:    -5- How can I create a QuickTime file on an SGI?
  256. Date: Thu Feb 16 15:37:32 PST 1995
  257.  
  258.   The answer to this question depends upon the IRIX system
  259.   release you have:
  260.  
  261.         - If you are using IRIX 5.2 or earlier, you must obtain
  262.         quicktime_dev, SGI's QuickTime development option, or else
  263.         find or purchase a tool which supports QuickTime output.
  264.  
  265.         SGI does not provide a method to create QuickTime movie
  266.         files in the 5.2 release of the Movie Tools.  If you
  267.         obtain the Digital Media Development Option, together
  268.         with the QuickTime Development option, you can obtain a
  269.         tool which will create QuickTime files on an SGI system.
  270.  
  271.         See elsewhere in this FAQ for more information on both
  272.         the Digital Media Development Option and the QuickTime
  273.         Developer's Option.
  274.  
  275.       - If you are using IRIX 5.3 or later, you can use the
  276.           Movie Maker or Movie Convert applications to write a
  277.           QuickTime file.
  278.  
  279.         - If you use IRIX 5.3 with the WebFORCE software product,
  280.           you can also use the Movie Master, dmconvert, and
  281.           makemovie utilities to create the QuickTime file.  In
  282.           WebFORCE, you can also record a QuickTime movie using
  283.           the Capture Tool.  See elsewhere in this FAQ for
  284.           information on ordering WebFORCE.
  285.  
  286.   There is a commercially available tool called Image Independence
  287.   which will allow creation of both SGI and QuickTime movies
  288.   under IRIX 5.2 and later.  It is a batch image converter with A
  289.   GUI and command-line versions.  It can also convert movies from
  290.   one type to another, or split movies into separate frames.  It
  291.   comes with over 20 image formats, is fast and flexible.  It lists
  292.   for $495, and it can be purchased from Elastic Reality, Inc. at
  293.   (608) 273-6585.
  294.  
  295. ------------------------------
  296.  
  297. Subject:    -6- I need to play MPEG movies.  Does SGI offer MPEG
  298.                 support?
  299. Date: Thu Feb 16 15:42:49 PST 1995
  300.  
  301.   Again, the answer to this depends on the IRIX system release
  302.   that you have.
  303.  
  304.     - In all releases of IRIX up to and including IRIX 5.3,
  305.       the SGI movieplayer does not support MPEG movies.
  306.  
  307.       - If you use IRIX 5.3 with the WebFORCE software product,
  308.         the SGI movieplayer supports MPEG-1 movies.  You can
  309.         also create MPEG movies using the dmconvert or Movie Master
  310.         tools.  See elsewhere in this FAQ for information on
  311.         ordering WebFORCE.
  312.  
  313.   For free, you have several options which work regardless of the
  314.   IRIX release you have:
  315.  
  316.   1) You can use the Berkeley mpeg_play. You can get the file
  317.   mpeg_play.Z by anonymous ftp from
  318.  
  319.       ftp://sgigate.sgi.com/pub/Mosaic/mpeg_play.Z
  320.  
  321.   Please use the binary transfer mode to get that file, and then
  322.   enter:
  323.  
  324.       uncompress mpeg_play.Z
  325.  
  326.   to get mpeg_play.  You can use mpeg_play to play MPEG files specified
  327.   in Mosaic documents.
  328.  
  329.   2) Another MPEG player is available via FTP.  Here is its URL:
  330.  
  331.       ftp://geom.umn.edu/priv/daeron/src/mpeg_play-src.tar.Z
  332.  
  333.   This MPEG player has Motif frame controls.
  334.  
  335.   3) You might want to check out sgimpeg, a program based on
  336.   mpeg_play, with all graphics replaced with IrisGL calls.  It also
  337.   features some limited frame controls. The full package, bit, also
  338.   offers conversions of any frames within the MPEG stream to
  339.   jpeg/pnm/rgb and other formats.  Both bit and sgimpeg are available
  340.   from
  341.  
  342.       ftp://monte.svec.uh.edu/pub/bit/
  343.  
  344.   via anonymous ftp.
  345.  
  346.   [ Editors note: at the time of latest revision, sgimpeg was not
  347.     available at this Internet location. ]
  348.  
  349.   4) Here is yet another MPEG player from Greg Ward (greg@pet.mni.mcgill.ca):
  350.  
  351.   I have also written a GL-specific MPEG player -- same general
  352.   idea as sgimpeg, but it has a cruder user interface (all keyboard) and
  353.   a lot more features (memory or disk buffering, pixel doubling/tripling/
  354.   whatever, pause, single step forward or backward).
  355.  
  356.   It's available by anonymous ftp from yorick.mni.mcgill.ca, in /pub/mpeg.
  357.  
  358. ------------------------------
  359.  
  360. Subject:    -7- I created a movie with Capture, but now I can't edit it
  361.                 with Movie Maker or play it with Movie Player.
  362. Date: 20 May 1994 00:00:01 EST
  363.  
  364.   Check to see that you are using compatible versions of the tools.
  365.   Odds are that you created the movie with Capture (an application in
  366.   IRIX 5.1 and later), but are trying to use the tools from an IRIX
  367.   4.0.5 to view and manipulate them.
  368.  
  369.   The IRIX 5.x versions of the movie tools can read files created by
  370.   the 4.0.5 tools, but the reverse is not true.
  371.  
  372. ------------------------------
  373.  
  374. Subject:    -8- How can I write a program to create, edit, convert, or
  375.                 play movies?  Where can I get a copy of the SGI Movie
  376.                 Library?
  377. Date: Wed Nov 16 13:04:20 PST 1994
  378.  
  379.   The Digital Media Development Option contains the Video,
  380.   Audio, Audio File, MIDI, CD, DAT, Movie, and Compression
  381.   Libraries.  It allows you to perform tasks like these
  382.   inside your application:
  383.  
  384.   - perform audio, video, MIDI I/O on SGI machines (including
  385.     programming the IndyCam)
  386.  
  387.   - convert audio/video data between different formats
  388.     (this includes software and hardware
  389.     compression/decompression for audio and video)
  390.  
  391.   - read/write digital media file formats (SGI movie,
  392.     QuickTime, AIFF/AIFF-C sound files)
  393.  
  394.   - read/write DAT audio tapes using SGI SCSI DAT drive, read
  395.     CD audio disks using SGI SCSI CD drive.
  396.  
  397.   The part number for the Digital Media Development Option is
  398.   SC4-DMDEV-2.0.   If you would like to develop applications
  399.   which manipulate QuickTime files, you must also order the
  400.   companion product, QuickTime 1.0 Compressor Library, part
  401.   number SC4-QTCL-1.0.  The Digital Media Development Option
  402.   requires IRIX 5.2 or later (both part numbers above are
  403.   for the IRIX 5.2 versions).
  404.  
  405.   In order to use the Digital Media Development Option, you
  406.   also need to have IDO 5.2.  This is the basic IRIS
  407.   developer option, including compilers, basic C library
  408.   headers, graphics libraries, etc.
  409.  
  410.   In the United States, you can order these products by
  411.   calling Silicon Graphics toll-free at 1-800-800-SGI1
  412.   (1-800-800-7441).  If you live in a country other than the
  413.   United States, contact your nearest Silicon Graphics
  414.   office, or call one of these regional telephone numbers:
  415.  
  416.   Europe        (41) 22-798.75.25     (Geneva, CH)
  417.   North Pacific        (81) 3-5420.71.10
  418.   South Pacific        (61) 2-879.95.00
  419.   Latin America        1(415) 390.46.37
  420.   Canada        1(416) 625-4747
  421.  
  422.   Starting with IRIX 5.3 (due December 1994), the Digital
  423.   Media Development Environment will be included as a
  424.   standard piece of IDO, and you will no longer need to order
  425.   it separately.  However, the QuickTime 1.0 Compressor
  426.   Library will remain a separate product, due to SGI's
  427.   licensing agreements with Apple Computer, Inc.
  428.  
  429. ------------------------------
  430.  
  431. Subject:    -9- I can't use images exported with Moviemaker in any of my
  432.                 applications.  What image format does Moviemaker use?
  433. Date: Thu Feb 16 15:49:34 PST 1995
  434.  
  435.   In IRIX 5.2 and earlier, Moviemaker exports images using the
  436.   ImageVision FIT file format.  This library is supported by the
  437.   SGI ImageVision Library and its assorted tools.
  438.  
  439.   To convert FIT files to another file format, such as SGI rgb or TIFF,
  440.   use the imgcopy(1) program, part of the ImageVision Tools (imgtools)
  441.   product.  The ImageVision Tools are bundled with the basic IRIX
  442.   distribution.
  443.  
  444.   The following shell script will convert a batch of image files to SGI
  445.   format, using imgcopy:
  446.  
  447.   #----------------------- cut here ---------------------------
  448.   #!/bin/csh
  449.   #
  450.   # iv2sgi - convert a batch of imagevision-supported files to SGI
  451.   # .rgb format using imgcopy
  452.   #
  453.   # usage: iv2sgi <filenames>
  454.   #
  455.  
  456.   foreach image ($argv)
  457.       imgcopy -fSGI $image $image.rgb
  458.   end
  459.   #----------------------- cut here ---------------------------
  460.  
  461.   Moviemaker 2.1, which is available in the IRIX 5.3 release,
  462.   supports image export in SGI and TIFF, as well as FIT formats.
  463.  
  464.   NOTE: the IRIX 5.3 version of Moviemaker contains a bug which
  465.   prevents it from exporting images to TIFF format.  Exported images
  466.   will look all black or all white.  If this is important to you,
  467.   you can contact SGI's Technical Assistance Center and ask for a
  468.   patch release of Moviemaker to correct this problem.  This bug
  469.   is also fixed in the WebFORCE software product for IRIX 5.3.
  470.  
  471.   If you have IRIX 5.3 or later, you can also use Movie Convert to
  472.   extract image frames from movie files.  Moviemaster converts between
  473.   movies and images. 32 different image formats are currently
  474.   supported. All sgi movie formats are supported.  Moviemaster can
  475.   extract frames from a movie, build a movie from frames, or image
  476.   convert from one format to another.
  477.  
  478. ------------------------------
  479.  
  480. Subject:   -10- Can anyone provide details on the SGI movie format?
  481. Date: Tue Nov 15 15:21:19 PST 1994
  482.  
  483.   The contents of the SGI movie file format are not documented.  To
  484.   create and manipulate SGI movie files in your own application, we
  485.   recommend that you use the SGI Movie Library, part of the Digital
  486.   Media Development environment.  This will not only save you work in
  487.   your application, but will ensure that your program remains
  488.   compatible with any revisions SGI makes to its movie file format.
  489.  
  490.   If you need to manipulate movie files for cross-platform purposes, we
  491.   recommend that you obtain the QuickTime Developer's Option to create
  492.   QuickTime movies which can be used cross-platform.  Additionally,
  493.   if you have the WebFORCE software product for IRIX 5.3, you can
  494.   create MPEG movies which can be used cross-platform.
  495.  
  496.   See elsewhere in this FAQ for more information on both the Digital
  497.   Media Development Environment and the QuickTime Developer's Option.
  498.  
  499. ------------------------------
  500.  
  501. Subject:   -11- Can anyone provide details on the QuickTime movie
  502.                 format?
  503. Date: 20 May 1994 00:00:01 EST
  504.  
  505.   For more details on the Apple implementation of QuickTime and its
  506.   file format, see "Inside Macintosh:  QuickTime" (ISBN 0-201-62201-7)
  507.   and "Inside Macintosh:  QuickTime Components", both by Apple Computer
  508.   and published by Addison-Wesley.  The former book contains a detailed
  509.   description of the QuickTime file format.
  510.  
  511. ------------------------------
  512.  
  513. Subject:   -12- How can I convert from SGI movie format to MPEG?
  514. Date: Thu Feb 16 15:58:48 PST 1995
  515.  
  516.   - If you are using IRIX 5.3 or earlier, SGI provides no bundled
  517.     tools to convert SGI movies to MPEG.
  518.  
  519.     There is a publically available program which can convert SGI
  520.     movie files to MPEG.  It was developed by Andreas Paul
  521.     <paula@informatik.tu-muenchen.de>.  It can be obtained from:
  522.  
  523.     ftp://ftp.rus.uni-stuttgart.de/pub/systems/sgi/animation/mv2mpeg_final.tar.gz
  524.  
  525.     It is for IRIX 5.x systems, and supports all versions of the SGI
  526.     movie file format.
  527.  
  528.     If you are using IRIX 4.0.x, then get mov2mpeg from
  529.  
  530.     ftp://ftp.gvu.gatech.edu/pub/people/kooper/mov2mpeg.tar.gz
  531.  
  532.     Finally, another way to convert to MPEG is to export all of
  533.     the images and audio track from the SGI movie file by using
  534.     moviemaker or makemovie,  and feed the result (a sequence of
  535.     still frames) into one of the public domain MPEG encoders
  536.     available on the net.
  537.  
  538.   - If you are using IRIX 5.3 with the WebFORCE software product,
  539.     you can use the Movie Master or dmconvert utilities to create
  540.     MPEG movies.  See elsewhere in this FAQ for information on
  541.     ordering WebFORCE.
  542.  
  543.   Regardless of IRIX software release, there is at least one
  544.   commercial product which can create MPEG files, called MpegExpert:
  545.  
  546.     MpegExpert is the highest performance and most featured MPEG
  547.     playback solution for SGI platforms. It plays compressed MPEG-1
  548.     audio, video or system level multiplexed audio+video bitstreams in
  549.     realtime with stereo CD quality sound. With the integrated
  550.     CAPTURE_TOOL it lets the user cut and save pictures or sequences
  551.     from an MPEG source, allowing a simple form of editing. And with
  552.     the CD_TOOL user can play Video_CD and CD-I digital movies from a
  553.     CDROM player. Its specially designed data input architecture
  554.     enables smooth MPEG playback from video servers over networks.
  555.     MpegExpert can be integrated into other applications or it can be
  556.     used interactively through its motif based user interface.
  557.     MpegExpert software, documentation, and demo version are available
  558.     on line via anonymous ftp from ftp.portal.com:/pub/apvision or
  559.     ftp.netcom.com:/pub/ap/apvision.  Any further inquiry if required,
  560.     can be sent to apvision@netcom.com
  561.  
  562.   For more information on MPEG, and a list of places where you can
  563.   obtain MPEG encoder software, consult the MPEG Frequently Asked
  564.   Questions document. You can FTP it from
  565.  
  566.       ftp://ftp.cs.tu-berlin.de/pub/msdos/dos/graphics/mpegfa11.zip
  567.       ftp://ftp.cs.tu-berlin.de/pub/msdos/dos/graphics/mpegfa20.zip
  568.       ftp://ftp.cs.tu-berlin.de/pub/msdos/dos/graphics/mpegfa30.zip
  569.       ftp://ftp.cs.tu-berlin.de/pub/msdos/dos/graphics/mpegfa31.zip
  570.  
  571.   These documents are versions 1.1, 2.0, 3.0, and 3.1 of the MPEG FAQ
  572.   document.
  573.  
  574. ------------------------------
  575.  
  576. Subject:   -13- What is the WebFORCE software product?  What does it do?
  577.                 How can I order it?
  578. Date: Thu Feb 16 16:03:10 PST 1995
  579.  
  580.   WebFORCE is a software product from Silicon Graphics intended
  581.   to help you view, publish, and serve material for the World Wide
  582.   Web.  It includes the Netscape WWW browser, Netsite WWW server
  583.   software, and an authoring environment from Silicon Graphics
  584.   which includes WebMagic (an HTML editing application) and
  585.   enhanced digital media tools (which create content in the popular
  586.   media formats used on the WWW, such as GIF, JPEG, MPEG, and
  587.   QuickTime with Cinepak).
  588.  
  589.   To order the WebFORCE software product, you will need these
  590.   SGI marketing codes:
  591.  
  592.     SC4-WEBSRV-1.0        WEBFORCE/NETSITE 1.0
  593.     013-1252-001        LISENCE ASSY CINPK MPEG & AUT IMP CD
  594.  
  595.   In the United States, you can order these products by
  596.   calling Silicon Graphics toll-free at 1-800-800-SGI1
  597.   (1-800-800-7441).  If you live in a country other than the
  598.   United States, contact your nearest Silicon Graphics
  599.   office, or call one of these regional telephone numbers:
  600.  
  601.   Europe        (41) 22-798.75.25     (Geneva, CH)
  602.   North Pacific        (81) 3-5420.71.10
  603.   South Pacific        (61) 2-879.95.00
  604.   Latin America        1(415) 390.46.37
  605.   Canada        1(416) 625-4747
  606.  
  607.   WebFORCE and WebMagic are trademarks of Silicon Graphics, Inc.
  608.  
  609. ------------------------------
  610.  
  611. Subject:   -14- How can I convert from Microsoft AVI movie format to SGI
  612.                 movie format?
  613. Date: Tue Nov 15 15:23:16 PST 1994
  614.  
  615.   Currently, SGI does not provide a means to peform this conversion.
  616.  
  617.   XAnim is a public domain program which can play movies in the AVI
  618.   movie format.  See above for information on how to obtain this tool
  619.   via the Internet.
  620.  
  621. ------------------------------
  622.  
  623. Subject:   -15- Is there a way to bring up a movie (using movieplayer)
  624.                 within Showcase using a button click...and having it
  625.                 place itself automatically in a certain location and
  626.                 start?
  627. Date: 20 May 1994 00:00:01 EST
  628.  
  629.   Not that I know of.  When we want to play a movie, we usually
  630.   hyperscript the object to run a script, and in the script we place
  631.   the movie where we want to.  Here is an example of the script.  Call
  632.   it with the movie name as an argument.
  633.  
  634.   /usr/sbin/movieplayer -fNv -S$X1,$Y1,360,243 -l 1 -z $ZOOM $1
  635.  
  636.   Define your zoom factor ($ZOOM) and position ( X1 Y1 ) in front of
  637.   this.
  638.  
  639. ------------------------------
  640.  
  641. Subject:   -16- I am using Mosaic.  When I try to view a movie,
  642.                 movieplayer starts, but then shows a message: no movie.
  643.                 How can I make it work?
  644. Date: 20 May 1994 00:00:01 EST
  645.  
  646.   Check the following:
  647.  
  648.   - Is your system running IRIX 4.0.5?  The movieplayer in IRIX 4.0.5
  649.     does not support QuickTime movies.  You will need to upgrade to
  650.     IRIX 5.2 in order to receive QuickTime support in movieplayer.
  651.  
  652.   - Check to see that the movie file was copied over completely by
  653.     Mosaic.  Sometimes Mosaic will fail to transfer the file completely
  654.     if the network load is very high.
  655.  
  656.   - Finally, the following information submitted by Dave Babcock
  657.     (daveb@merlin.mti.sgi.com) may prove helpful:
  658.  
  659.   xmosaic includes the capability to automatically play SGI movie files
  660.   referenced by a html document.  Unfortunately, there is a "bug" which
  661.   keeps it from actually working.
  662.  
  663.   Fortunately, there is an easy fix.  Just edit the
  664.   /usr/local/lib/mosaic/mailcap file and change the following line:
  665.  
  666.     video/x-sgi-movie; movieplayer -l 1 %s; compose=moviemaker %s; \
  667.  
  668.   to be:
  669.  
  670.     video/x-sgi-movie; movieplayer -f -l 1 %s; compose=moviemaker %s; \
  671.  
  672.   that is just add the -f.
  673.  
  674.   For those who care, the problem is: mosaic copies the movie file to a
  675.   local temp file; spawns movieplayer passing it the name of the temp
  676.   file; when it sees movieplayer "terminate" mosaic nicely deletes the
  677.   temp file.  But by default movieplayer runs in background mode which
  678.   mosaic interprets as it being done and deletes the temp file just
  679.   before the background task trys to open the temp file.  The symptom
  680.   is that you get the error message:
  681.  
  682.     Could not open: /usr/tmp/gaaa000-0.mv: No such file or directory
  683.     could not open movie file
  684.  
  685.   and nothing happens.
  686.  
  687. ------------------------------
  688.  
  689. Subject:   -17- I have the Galileo (or Indy Video) option, but I can't
  690.                 get Capture to use it.  When I run it, the IndyCam shows
  691.                 up.  What do I do?
  692. Date: Tue Nov 15 15:36:26 PST 1994
  693.  
  694.   When run on a system with more than one video device (for example,
  695.   an Indy with both Indy Video and the built-in IndyCam support),
  696.   Capture will use the IndyCam by default.
  697.  
  698.   To force Capture to run using Galileo or Indy Video, enter the
  699.   following command line at a shell prompt:
  700.  
  701.   capture -ev1
  702.  
  703.   Make sure that you are using Capture with IRIX 5.2 or later.
  704.  
  705. ------------------------------
  706.  
  707. Subject:   -18- I cannot get the right video to show in the Capture
  708.                 tool! I get a video source other than the one I want or
  709.                 the screen is black.  What do I do?
  710. Date: Tue Nov 15 15:39:30 PST 1994
  711.  
  712.   Capture does not allow you to choose a signal source.  It uses the
  713.   system video settings.
  714.  
  715.   To change the system settings for signal source (and hence the signal
  716.   source for Capture), do the following:
  717.  
  718.   Run vcp or videopanel.
  719.  
  720.   Choose the device (VINO or Galileo/Indy Video) you are using.
  721.   VINO is for the Indy's built-in video (both the IndyCam and
  722.   its analog video input port).  Galileo/Indy Video is available
  723.   only if you have those optional hardware products installed.
  724.  
  725.   Then choose the input.  For VINO, this control is labeled
  726.   "Default In".  For Galileo/Indy Video, this control is labeled
  727.   "Input Source".  You may need to close other video apps
  728.   (including Capture) to do this.
  729.  
  730.   Don't forget to make sure that your camera or VCR is plugged
  731.   in correctly, and that your camera can see video.  Look into
  732.   the camera's viewfinder to make sure it is working.
  733.  
  734.   Choose "Live Video Input" off the Utilities menu to check.
  735.   The video you see here is what Capture will use.  Close this
  736.   window when you are satisfied.
  737.  
  738.   If you closed Capture, start it again (don't forget -ev1 on
  739.   the command line if you are using Galileo/Indy Video; see
  740.   above).  You should get the video you want.
  741.  
  742. ------------------------------
  743.  
  744. Subject:   -19- Why does Capture tell me to "Please Stand By", instead
  745.                 of capturing video?
  746. Date: Tue Nov 15 15:39:30 PST 1994
  747.  
  748.   Capture presents the "Please Stand By" message in two circumstances:
  749.  
  750.     1) It is processing video that you just captured.
  751.     2) Your system has video support, but Capture for some
  752.        reason cannot use it.
  753.  
  754.   Symptom 1) is normal operation for the program, and is nothing
  755.   you should worry about.
  756.  
  757.   Symptom 2) can happen for several reasons.  Check the following:
  758.  
  759.     - Make sure to close down all other applications which use
  760.       video.
  761.  
  762.     - If you are using the IndyCam, make sure it is plugged in
  763.       to the back of the machine.  Perhaps the connector may have
  764.       worked itself loose.
  765.  
  766.     - If you still get the "Please Stand By" message, reboot the
  767.       system.  It might be possible that the system video services
  768.       had become wedged for some reason; a reboot fixes this
  769.       problem.
  770.  
  771.     - Make sure that you have the signal source set correctly,
  772.       and that video shows up onscreen from the Video Control
  773.       Panel.  See above question, "I cannot get the right
  774.       video to show in the Capture tool!" for details on how
  775.       to do this.
  776.  
  777. ------------------------------
  778.  
  779. Subject:   -20- Capture just grabbed a file for me, but now I can't find
  780.                 it.  Where did Capture hide it?
  781. Date: Thu Nov 17 09:08:40 PST 1994
  782.  
  783.   Capture always places its file in the directory it was run
  784.   from.  If you ran it from the Indigo Magic desktop, odds are
  785.   that it placed the file in your home directory.
  786.  
  787.   To find out the name of the file, look in the title bar, or
  788.   choose "Settings" from the "Actions" menu and look in the
  789.   first typein blank.
  790.  
  791. ------------------------------
  792.  
  793. Subject:   -21- Under IRIX 5.3, my system has a video board and/or
  794.                 IndyCam, but Capture won't let me use it.  It just greys
  795.                 out the video options on its menu.  How can I make it
  796.                 work?
  797. Date: Thu Nov 17 09:08:40 PST 1994
  798.  
  799.   Odds are that you do not have video support installed on your system.
  800.  
  801.   Here is what you need to have installed, at a bare minimum:
  802.  
  803.   I  dmedia_eoe.sw.common 11/07/94  Common Execution Environment Components
  804.   I  dmedia_eoe.sw.compression  11/07/94  Compression Execution Environment
  805.   I  dmedia_eoe.sw.video  11/07/94  Video Execution Environment
  806.  
  807.   For IndyCam users, you also need the following:
  808.  
  809.   I  vino.sw.eoe          11/07/94  Indy Video-In Execution Software
  810.  
  811.  
  812.   For Galileo/Indy Video users, you also need the following:
  813.  
  814.   I  galileo.sw.eoe       11/07/94  Galileo Video Execution Software
  815.  
  816.  
  817.   For users with the Cosmo Compress option, you also need these
  818.   systems installed:
  819.  
  820.   I  cosmo.sw.eoe         11/07/94  Cosmo Compress Execution Software
  821.   I  dmedia_eoe.sw.utilities  11/07/94  Media Record, Playback, Convert
  822. Commands
  823.  
  824. ------------------------------
  825.  
  826. Subject:   -22- I created a movie with audio using makemovie, but the
  827.                 soundtrack plays back really garbled and choppy.  What
  828.                 do I do?
  829. Date: Thu Nov 17 09:08:40 PST 1994
  830.  
  831.   You created a movie with image and audio tracks of unequal length.
  832.   This probably happened because you chose a frame rate for the
  833.   movie which caused the image track to not match the length of the
  834.   audio track.
  835.  
  836.   There are a few solutions for this problem.  The easiest is to
  837.   choose a frame rate which makes the image track match the audio
  838.   track in length, and then use makemovie to create a new movie file
  839.   with the correct frame rate.  Another way is to pad the shorter
  840.   track (image or audio) out with additional content to match the
  841.   longer one.
  842.  
  843.   In IRIX 5.3, Moviemaker will automatically detect movies like these
  844.   and offer to correct them for you.  You can choose either of the
  845.   above methods of correction.  If you choose to pad out the shorter
  846.   track, Moviemaker adds blank material, which you can later edit.
  847.  
  848. ------------------------------
  849.  
  850. Subject:   -23- Does anyone know the maximum size a movie file that
  851.                 MovieMaker or MoviePlayer can handle?  Is it limited by
  852.                 free memory, or will it play from the hard drive?
  853. Date: Thu Nov 17 09:08:40 PST 1994
  854.  
  855.   Movieplayer plays movies from the hard drive.  Moviemaker edits
  856.   movies directly on disk.
  857.  
  858.   It is entirely possible to write an appplication which plays
  859.   movies entirely from memory (see below for details), but
  860.   Movieplayer does not support that.
  861.  
  862. ------------------------------
  863.  
  864. Subject:   -24- How do I write a program to access the pixels of a video
  865.                 frame in a movie file for image processing purposes?
  866. Date: Wed Nov 16 13:04:20 PST 1994
  867.  
  868.   Basic overview:
  869.  
  870.   You need to write the program using the Movie Library.
  871.   Open the file using mvOpenFile(3mv), get a handle to the
  872.   image track using mvFindTrackByMedium(3mv), then read the
  873.   individual image frames using mvReadFrames(3mv).
  874.  
  875.   Details on the format of image data:
  876.  
  877.   The following libmovie calls return information to describe
  878.   the format of the data returned by mvReadFrames():
  879.  
  880.   int           mvGetImageWidth      ( MVid imageTrack );
  881.   int           mvGetImageHeight     ( MVid imageTrack );
  882.   double        mvGetImageRate       ( MVid imageTrack );
  883.   const char*   mvGetImageCompression( MVid imageTrack );
  884.   DMinterlacing mvGetImageInterlacing( MVid imageTrack );
  885.   DMpacking     mvGetImagePacking    ( MVid imageTrack );
  886.   DMorientation mvGetImageOrientation( MVid imageTrack );
  887.  
  888.   For interlacing, packing and orientation, the types of
  889.   formats can be found in <dm_image.h>.
  890.  
  891.   Once you have the description of format for the data in the
  892.   image track, you can treat the buffer of untyped data
  893.   returned by mvReadFrames() as an array of pixels.  If you
  894.   need the data in a different format for your image
  895.   processing or file I/O, you will need to perform the
  896.   conversion yourself.
  897.  
  898.   For writing movies, the process works similarly.  Create a
  899.   DMparams structure that describes the format of the data
  900.   you will be writing, and pass that to mvAddTrack().  This
  901.   creates an image track with the data format you want.  Then
  902.   pass pixel data in that format to mvInsertFrames().
  903.  
  904.   Note that the Movie Library uses the MVid data type to
  905.   represent both movies, and tracks within the movies.  So
  906.   when you write a program to read or write image frames,
  907.   you will have two MVid variables - one for the movie as
  908.   a whole, and one for the image track embedded within the
  909.   movie.
  910.  
  911.   Check the Digital Media Programmer's Guide and the Movie
  912.   Library Manual pages for more details, as well as detailed
  913.   instructions on how to use these calls.
  914.  
  915. ------------------------------
  916.  
  917. Subject:   -25- How do I write a program which can write individual
  918.                 frames from a movie file out to a still image file?
  919. Date: Wed Nov 16 13:04:20 PST 1994
  920.  
  921.   Once you have managed to read individual frames from a
  922.   movie file (see above), you have several options for
  923.   writing the still frames to an image file.
  924.  
  925.   There is an image library, libimage.a, which supports
  926.   reading and writing the Silicon Graphics RGB file format.
  927.   Sample programs for using this library appear in the
  928.   4Dgifts subsystem.
  929.  
  930.   Also, you can purchase the optional SGI ImageVision
  931.   Library.  ImageVision supports output to several image file
  932.   formats, including SGI, TIFF, JFIF, and its own proprietary
  933.   FIT format.  C++ developers can add their own file
  934.   formats.  ImageVision also provides several powerful
  935.   operators for converting, procesing, and displaying image
  936.   data, and also provides hardware acceleration on SGI
  937.   platforms which support it.  Contact your SGI sales office
  938.   for more details (see above for details about where to
  939.   call).
  940.  
  941.   Finally, make sure you've installed the Movie Library
  942.   example programs.  They contain a program called
  943.   editmovie.c which writes still frames to image files, using
  944.   ImageVision to write the data to disk.
  945.  
  946. ------------------------------
  947.  
  948. Subject:   -26- I'm using the Movie Library to create QuickTime movies
  949.                 using Apple's Video compression.  When are default key-
  950.                 frames placed in a QuickTime movie made with the SGI
  951.                 movie library?
  952. Date: Wed Nov 16 13:04:20 PST 1994
  953.  
  954.   Currently, key frames are placed by default every fifth
  955.   frame.  Currently, there is no mechanism to customize
  956.   this feature.
  957.  
  958. ------------------------------
  959.  
  960. Subject:   -27- The Movie Library has calls to play a movie in a file,
  961.                 memory or a file descriptor.  But all of them seem to
  962.                 assume that the complete movie is available locally.
  963.                 How can I play a movie all of which is not available
  964.                 locally?
  965. Date: Wed Nov 16 13:04:20 PST 1994
  966.  
  967.   It's really not possible at the moment.  The Movie Library
  968.   needs access to both the header/indexing information stored
  969.   in the movie file, as well as the media data itself in
  970.   order to play the movie.
  971.  
  972.   It may be possible to do this by passing a socket
  973.   descriptor instead of a file descriptor.  There definitely
  974.   is a problem of seeking to a particular frame.  If the whole
  975.   movie is streamed in with no mvSetCurrentFrame() kind of
  976.   calls, it may work.
  977.  
  978. ------------------------------
  979.  
  980. Subject:   -28- When programming with the Movie Library, can we insert
  981.                 and delete frames from a playing movie?
  982. Date: Wed Nov 16 13:04:20 PST 1994
  983.  
  984.   Absolutely not.
  985.  
  986. ------------------------------
  987.  
  988. Subject:   -29- When writing frames to a movie with the Movie Library,
  989.                 if we fix the image track parameters, does the byte size
  990.                 of the frame remain constant across frames?
  991. Date: Wed Nov 16 13:04:20 PST 1994
  992.  
  993.   In general, no.  The compression codecs return variable size byte
  994.   counts for the frames they compress.
  995.  
  996. ------------------------------
  997.  
  998. Subject:   -30- How do I write a program to play a movie entirely from
  999.                 memory?
  1000. Date: Wed Nov 16 13:04:20 PST 1994
  1001.  
  1002.   Typically, you open the movie file using the Unix open() system
  1003.   call.  You then allocate a memory buffer as large as you need, and
  1004.   use the read() system call to read the entire movie into the memory
  1005.   buffer.  Then pass the pointer to this memory region to mvOpenMem()
  1006.   and you're set.
  1007.  
  1008.   If you want to get more fancy, you can use the mpin() system call
  1009.   to attempt to lock your memory buffer in physical memory, so
  1010.   it does not get swapped out.  Or, you can use the mmap() system
  1011.   call to associate your disk file with a memory pointer, and pass
  1012.   the memory-mapped region to mvOpenMem().  This has certain advantages
  1013.   which are outside the scope of this FAQ; consult the manual pages
  1014.   and a good book on Unix system-call level programming for details.
  1015.  
  1016. ------------------------------
  1017.  
  1018. Subject:   -31- How do I capture movies from live video within my
  1019.                 application?
  1020. Date: Wed Nov 16 13:04:20 PST 1994
  1021.  
  1022.   In IRIX 5.2, your only choice is to write your own code using
  1023.   the Audio, Video, and Movie Libraries to capture live video
  1024.   and audio and save it to disk - not an easy task.
  1025.  
  1026.   In IRIX 5.3, your program can use the Capture Tool to do this
  1027.   work.  You can invoke the Capture tool, passing it a file name
  1028.   and a set of options telling it what media to capture and what
  1029.   compression to use.  When the user exits the Capture Tool, you
  1030.   simply open the movie file it recorded for you.  Check the
  1031.   5.3 manual page for Capture for more details.
  1032.  
  1033. ------------------------------
  1034.  
  1035. Subject:   -32- How do I write a program to read and write compressed
  1036.                 data to a movie file?
  1037. Date: Wed Nov 16 13:04:20 PST 1994
  1038.  
  1039.   Check out the manual pages for the mvGetCompressedImageSize(),
  1040.   mvReadCompressedImage() and mvInsertCompressedImage() calls.
  1041.   They should do what you need.
  1042.  
  1043. ------------------------------
  1044.  
  1045. Subject:   -33- I want to write a program which creates a JPEG-
  1046.                 compressed movie file, but I need to control the
  1047.                 compression quality.  How do I do this with the Movie
  1048.                 Library?
  1049. Date: Wed Nov 16 13:04:20 PST 1994
  1050.  
  1051.   Currently, the way to do this is to create a movie file with
  1052.   all the appropriate image track parameters (see above).  But instead
  1053.   of simply writing frames to the movie and letting the Movie Library
  1054.   automatically compress the frames for you, you handle the compression
  1055.   yourself.
  1056.  
  1057.   To do the compression yourself, you open a Compression Library JPEG
  1058.   compressor, set the quality factor, and use it to compress each
  1059.   frame.  Then you write the *compressed* data to the movie file
  1060.   (see above for instructions on how to do this).
  1061.  
  1062. ------------------------------
  1063.  
  1064. Subject:   -34- I want to write a program which can create a JPEG-
  1065.                 compressed movie file compatible with the Cosmo Compress
  1066.                 board, SGI's hardware JPEG accelerator.  How do I do
  1067.                 this?
  1068. Date: Wed Nov 16 13:04:20 PST 1994
  1069.  
  1070.   Movies which are compatible with the Cosmo Compress board
  1071.   have the following characteristics:
  1072.  
  1073.     - must be JPEG.
  1074.     - width must be video sized, even multiple of 8.
  1075.     - height must be video sized, even multiple of 8.
  1076.     - image frames must be interlaced.
  1077.     - image frames must be oriented top to bottom.
  1078.     - image packing must be RGB.
  1079.  
  1080.   Here is a piece of code which will check an existing image
  1081.   track for you.  C programmers will hopefully forgive the use
  1082.   of C++ style comments:
  1083.  
  1084.  
  1085.   ///////////////
  1086.   //
  1087.   // Check to see if the video track is one of the subset of
  1088.   // JPEG-encoded tracks that the cosmo board can play.
  1089.   //
  1090.   ///////////////
  1091.  
  1092.   static DMboolean isCosmoCompatible( MVid videotrack )
  1093.   {
  1094.       //
  1095.       // must be JPEG.
  1096.       //
  1097.       if ( mvGetCompression(videotrack) != IMAGE_COMP_JPEG ) {
  1098.           return DM_FALSE;
  1099.       }
  1100.  
  1101.       //
  1102.       // width must be video sized, even multiple of 8.
  1103.       //
  1104.       int width = mvGetImageWidth(videotrack);
  1105.       if ( width < 16 || width > 768 || width % 8 ) {
  1106.           return DM_FALSE;
  1107.       }
  1108.  
  1109.       //
  1110.       // height must be video sized, even multiple of 8.
  1111.       //
  1112.       int height = mvGetImageHeight(videotrack);
  1113.       if ( height < 16 || height > 2*296 || height % 8 ) {
  1114.           return DM_FALSE;
  1115.       }
  1116.  
  1117.       //
  1118.       // image frames must be interlaced.
  1119.       //
  1120.       if ( mvGetImageInterlacing(videotrack) == DM_IMAGE_NONINTERLACED) {
  1121.           return DM_FALSE;
  1122.       }
  1123.  
  1124.       //
  1125.       // image frames must be oriented top to bottom.
  1126.       //
  1127.       if ( mvGetImageOrientation(videotrack) != DM_TOP_TO_BOTTOM ) {
  1128.       return DM_FALSE;
  1129.       }
  1130.  
  1131.       //
  1132.       // image packing must be RGB.
  1133.       //
  1134.       if ( mvGetImagePacking(videotrack) != DM_PACKING_RGB ) {
  1135.           return DM_FALSE;
  1136.       }
  1137.  
  1138.       //
  1139.       // we've run the gauntlet.  dmplay can play this movie.
  1140.       //
  1141.       return DM_TRUE;
  1142.   }
  1143.  
  1144. ------------------------------
  1145.  
  1146. Subject:   -35- I simply want to create a JPEG-compressed movie which is
  1147.                 compatible with the Cosmo Compress board.  I don't want
  1148.                 to write my own program.  How do I do this?
  1149. Date: Wed Nov 16 13:04:20 PST 1994
  1150.  
  1151.   In IRIX 5.3, there are three ways to do this:
  1152.  
  1153.   1) Use the dmrecord utility to record live video from the Galileo
  1154.   or Indy Video options.
  1155.  
  1156.   2) Use the Capture tool to record live video from the Galileo
  1157.   or Indy Video options.
  1158.  
  1159.   3) Use the makemovie utility to generate a cosmo-compatible movie
  1160.   from a collection of still images.  Here is an excerpt from the
  1161.   manual page:
  1162.  
  1163.     To make an odd interlaced, 640x480, JPEG compressed movie with
  1164.     top-to- bottom orientation (of the sort that can be played back on
  1165.     the Cosmo compression board) from image files img1.rgb, img2.rgb,
  1166.     and img3.rgb:
  1167.  
  1168.     makemovie -o movie3.mv -c jpeg -s 640,480 -i odd -t \
  1169.              img1.rgb img2.rgb img3.rgb
  1170.  
  1171. ------------------------------
  1172.  
  1173. End of sgi/faq/movie Digest
  1174. ******************************
  1175. -- 
  1176. The SGI FAQ group                                sgi-faq@viz.tamu.edu
  1177. Finger us for info on the SGI FAQs, or look in viz.tamu.edu:/pub/sgi.
  1178.